package com.boarsoft.dao.sharding.aspect;

/**
 * @author user
 */
public class ShardingKeyContext {

    private static final ThreadLocal<String> SHARDING_KEY = new ThreadLocal<>();

    public static void set(String shardingkey) {
        SHARDING_KEY.set(shardingkey);
    }

    public static String get() {
        return SHARDING_KEY.get();
    }

    public static void clear() {
        SHARDING_KEY.remove();
    }

}
